<?php

class ClientManage extends CWidget {

    public $lang='th';
    
    public function run() {
        //Yii::app()->session['client']
        if(Yii::app()->session['client']){
        ?>
        <div class="panel panel-warning">
            <!-- Default panel contents -->
            <div class="panel-heading"><img src="images/building.png"> <b><?= Yii::app()->session['clientName'] ?></b></div>
            <!-- Table -->
            <table class="table table-hover">
<!--                <tr><td>
                        <a class="btn btn-link" href="index.php?lang=en&amp;r=Client/Edit"><i class="icon-building"></i> Edit profile</a>
                    </a></td></tr>
                <tr><td>
                        <a class="btn btn-link" href="index.php?lang=en&amp;r=Client/ChangePassword"><i class="icon-edit"></i> Change password</a>
                    </a></td></tr>-->
                <tr><td>
                        <a class="btn btn-link" href="index.php?lang=<?= $this->lang ?>&r=Client/Logout"><i class="icon-off"></i> Logout</a>
                    </a></td></tr>
            </table>
        </div>
        <?php
        }
    }

}
?>
